package cqrtplm.mapper;

import cqrtplm.dto.RtTestRequirementsDTO;
import cqrtplm.entity.RtTestRequirementsDO;
import cqrtplm.vo.RTEngraveDemandStatusVO;
import cqrtplm.vo.StatusInfoDetailContentVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;
import org.springframework.stereotype.Component;

import java.math.BigInteger;
import java.util.List;

/**
* @author 博
* @description 针对表【rt_test_requirements】的数据库操作Mapper
* @createDate 2025-06-03 15:13:56
* @Entity generator.RtTestRequirements
*/
@Component
public interface RtTestRequirementsMapper extends BaseMapper<RtTestRequirementsDO> {

    int deleteByIds(String[] ids);


    int updateById(RtTestRequirementsDTO dto);

    RtTestRequirementsDO selectById(String id);

    List<RtTestRequirementsDO> selectAllByRtTestRequirementsDTO(RtTestRequirementsDTO rtTestRequirementsDTO);

    int insertRtTestRequirementsDTO(RtTestRequirementsDTO dto);

    List<RtTestRequirementsDO> selectAllByStatusInfo();

    List<StatusInfoDetailContentVO> selectStatusInfoDetailContentVO(String producttype);

    Integer selectByTestRequirments(@Param("testRequirements") String testRequirements,@Param("id") String id);

    List<RTEngraveDemandStatusVO> queryStatusInfoByTestCode(String testCode);

    @Delete("delete from RT_SYS_TESTREQUIREMENTS where ID_=#{id}")
    void deleteById(@Param("id") String id);
}




